home *** CD-ROM | disk | FTP | other *** search
- <refentry id="libgimp-gimpgimprc" revision="19 Jan 2001">
- <refmeta>
- <refentrytitle>gimpgimprc</refentrytitle>
- <manvolnum>3</manvolnum>
- <refmiscinfo>LIBGIMP Library</refmiscinfo>
- </refmeta>
-
- <refnamediv>
- <refname>gimpgimprc</refname><refpurpose></refpurpose>
- </refnamediv>
-
- <refsynopsisdiv><title>Synopsis</title>
- <synopsis>
-
-
-
- <link linkend="gchar">gchar</link>* <link linkend="gimp-gimprc-query">gimp_gimprc_query</link> (<link linkend="gchar">gchar</link> *token);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-gimprc-set">gimp_gimprc_set</link> (<link linkend="gchar">gchar</link> *token,
- <link linkend="gchar">gchar</link> *value);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-get-monitor-resolution">gimp_get_monitor_resolution</link> (<link linkend="gdouble">gdouble</link> *xres,
- <link linkend="gdouble">gdouble</link> *yres);
- </synopsis>
- </refsynopsisdiv>
-
-
-
-
-
- <refsect1>
- <title>Description</title>
- <para>
-
- </para>
- </refsect1>
-
- <refsect1>
- <title>Details</title>
- <refsect2>
- <title><anchor id="gimp-gimprc-query">gimp_gimprc_query ()</title>
- <programlisting><link linkend="gchar">gchar</link>* gimp_gimprc_query (<link linkend="gchar">gchar</link> *token);</programlisting>
- <para>
- Queries the gimprc file parser for information on a specified token.
- </para>
- <para>
- This procedure is used to locate additional information contained in
- the gimprc file considered extraneous to the operation of the GIMP.
- Plug-ins that need configuration information can expect it will be
- stored in the user gimprc file and can use this procedure to
- retrieve it. This query procedure will return the value associated
- with the specified token. This corresponds _only_ to entries with
- the format: (<token> <value>). The value must be a string. Entries
- not corresponding to this format will cause warnings to be issued on
- gimprc parsing a nd will not be queryable.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>token</parameter> :</entry>
- <entry> The token to query for.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The value associated with the queried token.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-gimprc-set">gimp_gimprc_set ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_gimprc_set (<link linkend="gchar">gchar</link> *token,
- <link linkend="gchar">gchar</link> *value);</programlisting>
- <para>
- Sets a gimprc token to a value and saves it in the gimprc.
- </para>
- <para>
- This procedure is used to add or change additional information in
- the gimprc file that is considered extraneous to the operation of
- the GIMP. Plug-ins that need configuration information can use this
- function to store it, and gimp_gimprc_query to retrieve it. This
- will accept _only_ parameters in the format of (<token> <value>),
- where <token> and <value> must be strings. Entries not corresponding
- to this format will be eaten and no action will be performed. If the
- gimprc can not be written for whatever reason, gimp will complain
- loudly and the old gimprc will be saved in gimprc.old.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>token</parameter> :</entry>
- <entry> The token to modify.
- </entry></row>
- <row><entry align="right"><parameter>value</parameter> :</entry>
- <entry> The value to set the token to.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-get-monitor-resolution">gimp_get_monitor_resolution ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_get_monitor_resolution (<link linkend="gdouble">gdouble</link> *xres,
- <link linkend="gdouble">gdouble</link> *yres);</programlisting>
- <para>
- Get the monitor resolution as specified in the Preferences.
- </para>
- <para>
- Returns the resolution of the monitor in pixels/inch. This value is
- taken from the Preferences (or the X-Server if this is set in the
- Preferences) and there's no guarantee for the value to be
- reasonable.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>xres</parameter> :</entry>
- <entry> X resolution.
- </entry></row>
- <row><entry align="right"><parameter>yres</parameter> :</entry>
- <entry> Y resolution.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
-
- </refsect1>
-
-
-
-
- </refentry>
-